Encoding fix

Fix for http://xbmclogs.com/show.php?id=197191