Fix a couple of nagging issues with the install script

When aptitude wasn't updated the script would fail trying to find dependencies for the one apt-get install call prior to the existing apt-get update. I added an additional one prior. I've also added a check to make sure the encoding is UTF-8, otherwise postgres fails to create the database.