modified :encoding to be :escape_mode