fix garbled UTF-8 characters