Fixes with memory alloc in url split helper