Fix UnicodeEncodeErrors in output of 'build', 'run' and 'up'

Squashed version of #125.
Closes #112.