[buffer] Fix slice() - 'end' index should not be included in slice
[buffer] Better handle empty slices
[buffer] Implement Buffer(str, encoding) constructor
[buffer] Remove debug output