Fix the character set handling properly in nmbd. Also fix bug where