Fix for unicode decode error