Fix for unicode decoding error in new splitting code

Also adds a new unicode integration test