uppercase input/output encoding