correcting use of Base64Encode method calls