Fixes bug that caused input values to get truncated at apostrophes.