catch unicode decode error