test input encodings