Handle multiline strings correctly

Fix #107. Fix #110.