Newline character URL encoding issue, in URL made with merge fields in an email

Hello All,

I want to use infusionsoft custom fields data in a link inside an email. Basically I want to pass the custom fields data to a third party form (Google Forms) to pre fill it with custom field data. But when a custom field contains a line break (Newline character) it is being encoded wrongly and converted to (%26%23013%3B - URL Encoded) which results in ( - URL Decoded) in the form field. But actually it should be converted to (%0A - URL encoded).

Did anyone else has faced this issue? Is it a bug? If any one has a solution please suggest.