LPS-42871 - Selecting a file/category name replaces spaces with htmlspecialcharacters

Hey @juliocamarero,

Attached is an update for http://issues.liferay.com/browse/LPS-42871.  I sent you this pull since these changes were originally added in Git SHA ID 76d6795353a04562ee7240976aa6c186f26bf896.  @epgarcia has added some changes there after in Git SHA ID 04955aab82cf2d342bd17c5da7f653e95be7ce56 as well.

Can you review these changes and make sure I did not break or affect anything?

Please let me know if you have any questions.  If everything passes, you can send it along to Brian. Thanks!