added function to encode username for URL (commented regex) and function to convert chars not allowed in IRC nicknames before
encoding it, updates #209