Added utf-8 and .revsh/rc support.
minor whitespace clean-up