test for JavaScript encode() decoding and URL decoding/encodign