unexpected newline error with curl and wget, fix?