relaxing the rules a bit about encodings. related to #603