Fix UnicodeDecodeError during OpenCV compilation