hexbuf2String(): Allow zero-lenght line width. Add parameter 'showOffset'.
Add missing #include.
Fix some permissions.