Fix unicode decode error on foreign systems