e2e: fix local URI generation

when using strncpy() make sure that the length includes the NULL