Move hex encoding back to getContent method

Signed-off-by: Michal Čihař <michal@cihar.com>