Mime charset fix library for c++ and python as c++ extension