Emulate file interface for in-core strings
