encode topic when config chnage from web interface.