remove newlines when reading conf files