replacing escape characters