Use proper buffer type for MessageToByteEncoder

Use proper buffer type for MessageToByteEncoder

added suggested changes

- made encodeInternal method static
- added separate byte objects for CR and LF to avoid array access

added suggested changes

- made encodeInternal method static
- added separate byte objects for CR and LF to avoid array access

Handle requests larger than 256 bytes

Handle requests larger than 256 bytes

corrected variable name

corrected variable name