[minor] [middleware] convert path to unicode