Docs and tests for implicit string conversion in write().