Fixed bug with invalid chars in jquery selector