Split at ~~ rather than just ~ which appears in URLs