Fix #964 by adding an option to register the .sr extension with PV