Fix codec error during pip install