escape bad characters. remove backslashes