Fix character encoding parameters