string: fix_encoding! now chooses encoding from configuration