tags: improve docs about determining the encoding