Switch get-pos-property to get-char-property