Consider to make conversion to ByteBuf from CharSequence inside this method (to decrease duplication)