Revised for characters unsupported by EC2 instance