convert to string before copying - for windows compatiblity