[ticket/10866] Use rawurlencode instead of urlencode

PHPBB3-10866
[ticket/10866] Tests for parse_url() replacements

PHPBB3-10866