mb functions need to be told the encoding