fixed bug for older ruby versions in SSHA-1 regex