added check for unsupported characters