some slug prefill logic (bug 1041722)

Once you start typing into the name field replace all spaces with '-'. Once you deselect you get no more prefill love which also takes care of other locales trying to override the existing slug. It's possible other logic could be added but I couldn't think of any for now.
How will this handle titles with multiple languages?