Add option to set the charset to encode GET parameters

This allows to encode the get parameters with different charset instead of just use the default UTF-8.