fixed GH #510: Incorrect RSAKey construction from istream