How well will this work for the last UTF block in _contents if it's not 0-terminated? If it's expected that it will always be 0-terminated, some sort of assert or a comment would be good.