Fix unicode error on gallery view.