Fix padding issue when decrypt/encrypt config file.