Fix handling of multibyte URL