Fix for ruby 1.9.1

Fix RSA keys problems in Identity.rb. Can run on ruby 1.9.1 and also 1.8