Fixing issue where some hashes could not be decoded because test guard around $lottery found a character with value of zero
Test included to test for a range of encode/decode values