apply encoding parameter to File.open in GET request