Fixed: Encoding bug in settings patcher. Also added more decent error handling.