fixed bug where a 0 in the binary hash string would result in no character
output