encodeBase64() does not close the input stream passed as an argument
anymore.