Preliminary encoding filter for ASCII-compat values
Avoid a possible buffer overflow case in URL encoding
UTF-encoding enforced on query strings (for Google)

- Split encoding into separate module
- Interprets multibyte strings (correctly, I think)