Fixed trailing new line char when setting clipboard