reduzed heartbeat timeout to 5 seconds
fixed various unicode bugs