Improve Memory.writeUtf implementations to trap bad pointer early
Add `Memory.writeAnsiString()`