Attempting to solve unicode encoding problems