codeAt but needs more testing