Well, you are handling a theoretical problem, because ui files will never have spaces. Another theoretical problem might be that they contain quotes, then this will break. So if we are fixing theoretical problems, let's fix them properly in all cases. :)