Check for invalid characters when base58-decoding.