Use toml encoder instead of writing strings