dealing with encoding issues in livewhale's broken ass database