moved base64 ruby 1.8 compatibility method into compat folder