regex fix for URI formation