cleaning up newlines in canonical url