nit: "if no encoding is provided"