core: fix data file creation in simple-server

ensure filehandle converted into hex string

Acked-by: Paul Millar