je_utils.{c,h}: contains je-safe versions of strdup and strndup