framer: fix array length, assuming user-agent is below 0xfd in length.

Signed-off-by: Fedor Indutny <fedor@indutny.com>