Hack to get around many types of string encodings