Invalid byte input fix

[#83253462]
Merge pull request #69 from GovWizely/yury/invalid_bytes_input

Invalid byte input fix