support non-ascii characters for resource paths