(originally written up as balena-io/pinejs#693, which was closed in favor of this)
RFC3986 section 2.2 Reserved Characters specifies that all of :/?#[]@*+,;= are reserved. The implementations of this in both the JavaScript encodeURIComponent and go's net/url package apply this pretty strictly. As such, this library should properly handle URI encoded forms of all OData expected characters - specifically, +/*,=;@:()'. Currently this library seems to only handle + and '. Note that ? and & can be ignored as they are only used in the URI query string parsing ?key=value&key=value and not expected in OData.
Additionally, RFC3986 section 2.1 Percent-Encoding says:
The uppercase hexadecimal digits 'A' through 'F' are equivalent to the lowercase digits 'a' through 'f', respectively.
So this library also needs to support both the uppercase and lowercase percent encoded forms.