Support multiple encodings of forms