Handle missing strict_encode64 on ruby 1.8.x.