Although substitute-command-keys has never kept text properties when it makes a change, it is annoying that merely substituting quotes strips the properties, so I installed the attached patch into emacs-25 to fix this particular problem. Thanks for reporting it.