Fixed lp:1308146 -  charm config options with $ and . in the names now work
Applied changes suggested by @davecheney