Switch from sun.misc.BASE64Encoder to javax.xml.bind.DatatypeConverter