This adds encoding logic to the migration for ProcessCommitWorker, ensuring it doesn't throw errors when the input can not be converted to UTF-8 without extra help.
https://gitlab.com/gitlab-org/gitlab-ce/issues/25489