Fixes issue with malformed SMS