handles escaped characters