Correcting incorrect escaping of ! by special casing it.