Fixed #106 - additional check of friendly filename in gallery.