Replace usage of StringBuilder by AppendableCharSequence for performance reasons
[#2033] Correctly handle adding of IdleStateHandler after Channel was already active and registered