Fix encoding issue in next_mix method. (fixes #42)