maybe we should assert on not a buffer or string, as you can pass a number here and get `'1\n'` as your result