Haven't checked the HTTP spec yet, but should this be multi byte string length `mb_strlen`?