Added unicode support. Added better handling of offline master servers.