Node's `buffer.slice` doesn't include end byte, so add 1

* Also fix range end inside file