Fixed UTF-8 text parsing