fixes #1809 - freeipa integration to smartproxy
Add strict_encode64 compatibility wrapper for Ruby 1.8
dominic's suggestions