Fix #15 - incorrect content-length when params.name has unicode characters