The dreaded format struct stuff, for kwallet
raw2dyna: fgets wrapper macro for muting compiler warnings