Support multiple encodings