fix dict build_index unicode problem