Make calculateUTF16asUTF8 also count code points