Fix base64 encoding with streams

Fixes [gh-207].
Ok, I can definitely remove it, but why did you decide to remove phpunit? Without this, it's not possible to simply `composer install` and start developing... what's the downside, I thought this was the entire point of require-dev?