Use mbstring for better compatibility.