MODE-2258 Fixed the URL encoder/decoder code to handle non reserved, non ASCII characters.