Stop doing crazy checks while scanning and modify/use the charmap when escaping
Remove unneeded function