Add utility methods to handle illegal chars