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

Also check for 'utf-8' => 'utf8'