fix invalid range in character class php 5.5.11