common: Extend function percent_data_escape.