Allow raw URLs to contain //s
Check that the macros are not null before attempting to expand