Clean up URL replacement