Allow setting the log level in 'appa shell'
Fix encoding problems