Added UTF-8 compatibility.