Is you attempt to do a bin/rails db:setup
or something similar and it complains like this:
PG::InvalidParameterValue: ERROR: encoding "UTF8" does not match locale "en_US"
DETAIL: The chosen LC_CTYPE setting requires encoding "LATIN1".
Run these commands in your Vagrant box: