support UTF-8 in compression