We need to remove newlines before urlencode.