add htmlSafe option to stringify (#9)