refactor: Migrate _percent_escape to util

This change makes it easier to reuse that code within Falcon, as well
as making the function available to 3rd parties.