changed core HTTP classes and URL class to support toString generation