convert queries to utf8 before preparing statement