CRM-13946: Backport PR #2185: set default database connection to UTF-8

https://issues.civicrm.org/jira/browse/CRM-13946
PR #2185