Invalid byte sequence error during install

SSH into the machine and then:

cd /var/discourse
nano containers/app.yml

That’s where all your config lives. You have a bad character there somewhere. Pasting the contents into http://www.yamllint.com may help you find it.