apply rawurlencode() for data with type=string