Fix for appendCodepoints