fix base64 encode on ruby 1.8.7?