fix detect encoding ascii -> utf8