Bug with unicode decode error in update cases function..