modify character encoding