20140410:Fixed the nbsp issue with document creation