Add the closing '"' when an IOException is thrown because the first byte cannot be read from the InputStream