Disallow long usernames and fix shell-server/issues/22