String encoding enhancements in various util classes.