Use the 'escape' character and then this should work as follows:
CREATE TABLESPACE test LOCATION E'C:\\test';