Make sure document name is plain text.