urls_to_absolute spec: remove newlines before comparing