Fix incorrect name validation in AbstractHttpData

- Fixes #1228