Handle Japanese encodings properly