[minor] check if % characters are part of an urlencoded char if not replace to prevent malformed uri errors from being thrown