Fix parse_url() to be consistant with Zend output.

Also improve Joomla! test pass rate.