whitelist characters for encoding instead of blacklisting