PT_Data::build_uri factorization