pathsmap and non-ascii character(s) bugfix