Fix encoding in portlet image titles:

Only encode if title is unicode, else, we don't touch it