r9671: patch from Kai Blin fixing a bug in our base64 encoder