Add utility functions for URI parsing.