Fix handling of non-standard icon extensions.