Resolved issue #508 final url getting quoted if | present in url. Also a...

...dded tests for the same.