I was failing on the ascii to binary conversion. I wasn't returning a padded binary, just the fewest bits to represent the value. \:\(