Fixed 2 issues in s_header_{field,value} states

I have found and fixed 2 bugs mainly related with the "last-char" handling on the mentioned states. Feel free to review and integrate the patches. Thank you!