Adds support for start and end offset parameters to buffer.toString