Truncate usernames to 18 characters without suffix - fix #637