Fix problem when setting public key from String.

While using the chef_client resource this failed because I wasn't passing `OpenSSL::PKey::RSA` but instead a `String` as the API indicates is acceptable. The formatter returns an Array tuple which fails a little bit further down when setting the JSON (assuming for payload) using the `#to_pem` method call.