Text this: A new approach to deal with non-linearities in Si detector response