bugfix: convert original path to unicode before using it as a regex.