base64_decode ready, not tested. encode bug fixes.