[PATCH v3 15/27] moveconfig: Use an encoding with open()