str: Add some functions for handling UTF-8.