fixed character encoding for string conversion