implement String#lines behavior when no block is given

- correctly preserve handle trailing separator