Encode opt-out keys as UTF-8.
Add encoding line to test file with UTF-8 characters.
Merge branch 'feature/issue-966-str-opt-out-keys' into develop