Fix Unicode support

Characters outside US ASCII shouldn't crash everything..
Turn the example into a simple test case for the previous Unicode fix