Fixed issue with url fragments (anchor), strip excessive quotes and more whitespace

* fixed an issue with url fragments, which had parts of the path removed
* added rule to remove quotes from url's if they are not needed
* remove whitespace around braces and comma's