added UTF support