Deal with parser encodings properly