Thanks for the report! I think I fixed it in Git, see https://sourceforge.net/p/uriparser/git/ci/cf0ae1ffa11581d4552f0eb22efcd7dfb2303e6f/ .
Please report back if that solves the problem for you. Thanks!