std.base64 should use ubyte[] not char[] for binary data - since char[] is for unicode.
Phobos2's std.base64 was rewritten in 2010 by Masahiro Nakagawa. The new version doesn't have this problem. Fixing this in Phobos1 would be a breaking change. I think we can close this bug.