removing explicit 'stringio' requirement