remove weird charset specifiers