Fix base64 specs for Ruby < 2.1.
Use strings in base64 decoders, so that we can avoid copy'ing data at string creation in dec_func.