fixed java char usage for http parser