Fix non-standard line handling in formparser