Fixing bug whereby phptidy failed text was UTF8 

Now blindly assuming the input text to be UTF8 and converting it to unicode before conversion.