Binary data in compact name

let's ignore strings with invalid encoding
Bonus: I've performed some code cleanup :)