fnmatch translate is making problems for replacement