bug fix for #75

Here's a very simple patch for #75 (problems related to encrypted passwords with very long salt) with test code.

tested with ruby 2.0.0p353 and jruby 1.7.6. 

Hope it helps.