fix for saving special characters