Fixed handling multi-byte characters in urlencode/urldecode