core salt: cleanup to-c conversion code
core salt: move name conversion module around