basic wildcard fix to respect the case of datasets

* currently the wildcard matches are case-sensitive (i.e. only exact case is matched)
* TODO: it might probably be improved to provide case-insensitive matches what are aware of the case...

P.S. first merge #4155