Fixes chrome issue with proper use of charCodeAt