Set the default codec for tr()

This is only required for Qt versions below 5.