config: Apply more strict input validation to almost all config file options

Signed-off-by: Ken ICHIKAWA <ichikawa.ken@jp.fujitsu.com>