It wouldn't because your goal isn't related to mIRC.

I figured you were working with a socket script or something, so the $chr() identifier will not work because all you're trying to do is fix some HTML (which really has nothing to do with mIRC unless it involves sockets).