module Roda::RodaPlugins::Base64_

def urlsafe_encode64(bin)

def urlsafe_encode64(bin)
  str = [bin].pack("m0")
  str.tr!("+/", "-_")
  str
end