Reduce a bit the cost of escape_string.