Made escape of escape characters more efficient