changed the way that URI are validated for pipes