Check for sys.maxunicode when generating utf8

This avoid generating a invalid unicode character in a narrow Python
build
Merge pull request #29 from elyezer/fix-unicode-range

Check for sys.maxunicode when generating utf8