common: New function percent_data_escape.