Merge "Make setCaptureRate locale safe"