Better validate utf8 string lengths

Refs PR #2, @deniak
Add constraint for special characters

Refs PR #2 @deniak
Refs PR #5 @salvamomo
Formatting and whitespace fixes

Refs PR #7 @cordoval