Potential fix for base64 NPE on OpenJDK

fix #197