question: private String encodeTitleWikistyle ( String pTitle ) { String encodedTitle = pTitle . replace ( ' ' , '_' ) ; return encodedTitle ; }
target:  Encodes a plain title string to wiki-style. Page titles in Wikipedia are encoded in a way that URLs containing the title are valid. Title strings entered by users normally do not conform to this wiki-style encoding.