handle other encoding than utf-8