declare charset, handle posix signals on exit for OOP services
a baseclass for cleaner client implementations, minor code reorg