Fixed CSS selection issue.

Fixed an issue where elements with spaces in the CSS ID wouldn't be
able to drag and drop.