Fix #435: Use underlying representation instead of URL object