Bugfix/old rubies

continuation of #509 with proper target branch
I suppose we could define `#base64digest` somewhere in core_ext for Rubies < 1.9.x.