Added utility functions for manipulating character set