Stringify before encode in UriEncoder.