Use full cipher name for the key cipher

This addresses the specific error for #606 but not the general problem
of running the tests on JRuby.