Fix unicode handling for image names.

This fixes one of the unit tests which expects to be able to use
unicode instance names.

Co-Authored-By: Ian Main <imain@redhat.com>
Change-Id: Iaa944ac5af25ee5c5e44d2beb80c5019c812bfb9