Fall back to stripping out newlines on Ruby 1.8.

#22 introduced the use of `Base64::strict_encode64` so that generated keys and signatures don't end up having newlines; however, `Base64::strict_encode64` was introduced in Ruby 1.9. This adds the fallback handling for Ruby 1.8.