Encode topics as utf-8