Fixing Issue Where Some Hashes Cannot Be Decoded

Fix for issue #7 and new test case
That would definitely work, doesn't seem to have any side effects either