port-encoding returns #f if port encoding not set