Added utility codec functions for converting between str and QString.
widgets: Always encode/decode between str and QString when a widget's text contains a filepath.