[phly/http#40] Add url encoding to path, query, and fragment
[phly/http#40] Add url encoding to path, query, and fragment

Added functionality to encode the path, query, and fragment values, per
suggestions from @mtdowling, and borrowing ideas/regular expressions
from guzzle and ZF2.

mnapoli/zend-diactoros,Maks3w/zend-diactoros,Ocramius/zend-diactoros,deepfreeze/zend-diactoros,mtymek/zend-diactoros,jguittard/zend-diactoros,localheinz/zend-diactoros