Encoding user key to utf-8 string to prevent UnicodeDecodeErrors with a non-ascii chars at HTTP_USER_AGENT header