Fix importing strings with trailing zeros, fixes issue #295