Resolved issue #508 final url getting quoted if | present in url. Also added tests for the same.