fromCharCode is working, but charCodeAt is not working